// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_INV_WH_LOCATION_EX
// * CreateDate    : 2014-06-05 18:30:13
// * Creater       : CodeSmith
// * LastChangeDate: 2014-06-05 18:30:13
// * LastChanger   : 2014-06-05 18:30:13
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Serialization;
using Suzsoft.Smart.EntityCore;
using ESOL.Common.Schema;
using ESOL.Common;

namespace ESOL.Common.Entity
{
    [DataContract]
	[Serializable]
	public partial class InvWhLocationExEntity : EntityBase
    {
        public InvWhLocationExTable TableSchema
        {
            get
            {
                return InvWhLocationExTable.Current;
            }
		}
		
		public InvWhLocationExEntity()
        {

        }
		
		public InvWhLocationExEntity(DataRow dr)
        {
			if(dr == null)
			{
				return;
			}
			this.Id = Convert.ToString(CommonFunctions.ToObject(dr["ID"]));
			this.CreatedBy = Convert.ToString(CommonFunctions.ToObject(dr["CREATED_BY"]));
			this.CreatedDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["CREATED_DATE"]));
			this.UpdatedBy = Convert.ToString(CommonFunctions.ToObject(dr["UPDATED_BY"]));
			this.UpdatedDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["UPDATED_DATE"]));
			this.IsActive = Convert.ToInt32(CommonFunctions.ToObject(dr["IS_ACTIVE"]));
			this.LocationId = Convert.ToString(CommonFunctions.ToObject(dr["LOCATION_ID"]));
			this.Type = Convert.ToInt32(CommonFunctions.ToObject(dr["TYPE"]));
			this.ProductId = Convert.ToString(CommonFunctions.ToObject(dr["PRODUCT_ID"]));
			this.RelatedId = Convert.ToString(CommonFunctions.ToObject(dr["RELATED_ID"]));
			this.LotNo = Convert.ToString(CommonFunctions.ToObject(dr["LOT_NO"]));
        }
		
		public InvWhLocationExEntity(DataRowView dr)
        {
			if(dr == null)
			{
				return;
			}
			this.Id = Convert.ToString(CommonFunctions.ToObject(dr["ID"]));
			this.CreatedBy = Convert.ToString(CommonFunctions.ToObject(dr["CREATED_BY"]));
			this.CreatedDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["CREATED_DATE"]));
			this.UpdatedBy = Convert.ToString(CommonFunctions.ToObject(dr["UPDATED_BY"]));
			this.UpdatedDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["UPDATED_DATE"]));
			this.IsActive = Convert.ToInt32(CommonFunctions.ToObject(dr["IS_ACTIVE"]));
			this.LocationId = Convert.ToString(CommonFunctions.ToObject(dr["LOCATION_ID"]));
			this.Type = Convert.ToInt32(CommonFunctions.ToObject(dr["TYPE"]));
			this.ProductId = Convert.ToString(CommonFunctions.ToObject(dr["PRODUCT_ID"]));
			this.RelatedId = Convert.ToString(CommonFunctions.ToObject(dr["RELATED_ID"]));
			this.LotNo = Convert.ToString(CommonFunctions.ToObject(dr["LOT_NO"]));
        }

        public override TableInfo OringTableSchema
        {
            get
            {
                return InvWhLocationExTable.Current;
            }
        }
		
		#region Perporty List
        [DataMember]
        public string Id
        {
            get { return Convert.ToString(GetData(InvWhLocationExTable.C_ID)); }
            set { SetData(InvWhLocationExTable.C_ID, value); }
        }
		
        [DataMember]
        public string CreatedBy
        {
            get { return Convert.ToString(GetData(InvWhLocationExTable.C_CREATED_BY)); }
            set { SetData(InvWhLocationExTable.C_CREATED_BY, value); }
        }
		
        [DataMember]
        public DateTime CreatedDate
        {
            get { return Convert.ToDateTime(GetData(InvWhLocationExTable.C_CREATED_DATE)); }
            set { SetData(InvWhLocationExTable.C_CREATED_DATE, value); }
        }
		
        [DataMember]
        public string UpdatedBy
        {
            get { return Convert.ToString(GetData(InvWhLocationExTable.C_UPDATED_BY)); }
            set { SetData(InvWhLocationExTable.C_UPDATED_BY, value); }
        }
		
        [DataMember]
        public DateTime UpdatedDate
        {
            get { return Convert.ToDateTime(GetData(InvWhLocationExTable.C_UPDATED_DATE)); }
            set { SetData(InvWhLocationExTable.C_UPDATED_DATE, value); }
        }
		
        [DataMember]
        public int IsActive
        {
            get { return Convert.ToInt32(GetData(InvWhLocationExTable.C_IS_ACTIVE)); }
            set { SetData(InvWhLocationExTable.C_IS_ACTIVE, value); }
        }
		
        [DataMember]
        public string LocationId
        {
            get { return Convert.ToString(GetData(InvWhLocationExTable.C_LOCATION_ID)); }
            set { SetData(InvWhLocationExTable.C_LOCATION_ID, value); }
        }
		
        [DataMember]
        public int Type
        {
            get { return Convert.ToInt32(GetData(InvWhLocationExTable.C_TYPE)); }
            set { SetData(InvWhLocationExTable.C_TYPE, value); }
        }
		
        [DataMember]
        public string ProductId
        {
            get { return Convert.ToString(GetData(InvWhLocationExTable.C_PRODUCT_ID)); }
            set { SetData(InvWhLocationExTable.C_PRODUCT_ID, value); }
        }
		
        [DataMember]
        public string RelatedId
        {
            get { return Convert.ToString(GetData(InvWhLocationExTable.C_RELATED_ID)); }
            set { SetData(InvWhLocationExTable.C_RELATED_ID, value); }
        }
		
        [DataMember]
        public string LotNo
        {
            get { return Convert.ToString(GetData(InvWhLocationExTable.C_LOT_NO)); }
            set { SetData(InvWhLocationExTable.C_LOT_NO, value); }
        }
		
		#endregion
	}
	
	
}	

